home *** CD-ROM | disk | FTP | other *** search
- #include "my color.h"
- init_color_demo() /* initialize all the managers needed, and prepare the
- program for execution */
- {
- short i;
-
- InitGraf(&thePort);
-
- InitFonts();
- FlushEvents(everyEvent,0);
- InitWindows();
- InitMenus();
- TEInit();
- InitDialogs(nil);
- InitCursor();
-
- for(i = 0; i < 5; i++)
- MoreMasters(); /* be prepared to do some heavy duty RAM allocation! */
-
- MaxApplZone();
-
- SetUpMenus();
- screenRect = screenBits.bounds;
- SetRect(&dragRect,4,24,screenRect.right-4,screenRect.bottom-4);
- doneFlag = false;
-
- menusOK = false;
- nextWNum = 1;
- SetRect (&nextWRect,leftEdge,topEdge,rightEdge,botEdge);
- }